package com.tedu.springboot13.service.impl;

import com.tedu.springboot13.dao.EmpDao;
import com.tedu.springboot13.pojo.Emp;
import com.tedu.springboot13.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmpServiceImpl implements EmpService {
    @Autowired
    EmpDao empDao;

    @Override
    public List<Emp> select() {
        List<Emp> selectall = empDao.selectall();
        return selectall;
    }
}
